package com.gugee.ins.data.monitor.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: luolifeng
 * Date: 2020-12-24 16:46
 */
@Getter
@Component
public class InsMonitorConfig {


    /**
     * 监控事件存储index的前缀
     */
    @Value(value="${ins.data.monitorEvent.preIndex}")
    String insMonitorEventIndexPre;

    /**
     * 监控事件执行sql异常时输出的sql长度
     */
    @NacosValue(value="${ins.data.monitorEvent.sql.length.max:1000}", autoRefreshed = true)
    int insMonitorEventSqlLengthMax;

}
